<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddSpIdAndOgroupIdAndOnclickAndOnfocusAndRestfulToColumnsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('columns', function (Blueprint $table) {
            $table->integer('sp_id')->default(0)->nullable()->unsigned()->comment('服务商Id');
            $table->integer('ogroup_id')->default(0)->nullable()->unsigned()->comment('渠道ID');
            $table->string('onclick')->nullable()->comment('onclick');
            $table->string('onfocus')->nullable()->comment('onfocus');
            $table->string('restful')->nullable()->comment('restful');
            $table->string('description')->nullable()->comment('描述');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
